home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
dl_exsrc.zoo
/
msize.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-03
|
226b
|
13 lines
#include "membook.h"
long msize(void *addr)
{
register struct mem_chunk *r = (struct mem_chunk *)addr;
r--;
if (r->valid != VAL_ALLOC)
return -1;
else
return r->size - sizeof(struct mem_chunk);
}